﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CommitteeHomeUserControl.ascx.cs"
    Inherits="JM.JCY.SharePointComponent.Committee.CommitteeHome.CommitteeHomeUserControl" %>
<script type="text/javascript">

    $(document).ready(function () {

        $("#td_CommitteeName").click(function () {
            $("#DivCommitteeName").slideToggle("slow", function callback() {
                if ($("#DivCommitteeName").is(":visible")) {
                    $("#imgCommitteeName").attr("src", "/_Layouts/JM.JCY.Resource/images/toggle_collapse.png");
                }
                else {
                    $("#imgCommitteeName").attr("src", "/_Layouts/JM.JCY.Resource/images/toggle_expand.png");
                }
            });
        });

        $("#td_CommitteeDesc").click(function () {
            $("#DivCommitteeDesc").slideToggle("slow", function callback() {
                if ($("#DivCommitteeDesc").is(":visible")) {
                    $("#imgCommitteeDesc").attr("src", "/_Layouts/JM.JCY.Resource/images/toggle_collapse.png");
                }
                else {
                    $("#imgCommitteeDesc").attr("src", "/_Layouts/JM.JCY.Resource/images/toggle_expand.png");
                }
            });
        });
    });

    function RedirectToEditCommittee(sender) {
        sender.href = "/MyCommittee/CommitteePages/EditCommitteeMember.aspx?CommitteeId=" + $("#<%= hfCommitteeId.ClientID %>").val();
        return false;
    }
</script>

<div>
    <table class="main">
        <tr>
            <td valign="top" runat="server" id="tdContent">
                 <table class="webpart" width="100%" cellpadding="0" cellspacing="0">
                   <tr>
                        <th align="left" id="tdToggleStaffInfo1" class="title" width="50%" style="cursor: pointer">
                              <asp:Label ID="lblCommitteeName" runat="server"></asp:Label>
                        </th>
                        <th id="tdToggleStaffInfo2" class="link" align="right" width="50%" style="cursor: pointer">
                            <img runat="server" id="imgEdit" src="/_layouts/JM.JCY.Resource/images/EDIT.gif"
                                            width="15" />
                                            
                                            <asp:LinkButton ID="lkbEditCommittee" runat="server" Text="编辑" onclick="lkbEditCommittee_Click"> </asp:LinkButton>
                        </th>
                    </tr>
               
                    <tr>
                        <td colspan=2>
                            <br />
                            <hr />
                        </td>
                    </tr>
                    <tr>
                    <td colspan=2>
                            专题小组介绍：<asp:Label ID="lblCommitteeDesc" runat="server" ForeColor="#003366"></asp:Label>
                    </td>
                    </tr>
                    <tr>
                    <td colspan=2>
                        <br /><hr />
                    </td>
                    </tr>
                    

                </table>
            </td>
        </tr>
    </table>
</div>

<asp:HiddenField ID="hfCommitteeId" runat="server" />
